# -*- coding: utf-8 -*-
import platform

from PyInstaller.__main__ import run

if __name__ == '__main__':
    name = f'wine-python-test'
    opt = [f'-F',
           f'-w' if platform.system() == 'Windows' else '-c',
           f'-y',
           f'--clean',
           f'--uac-admin',
           f'--hidden-import=os',
           f'--hidden-import=PIL._tkinter_finder',
           f'--name={name}',
           f'test.py']
    run(opt)
